﻿using IOCDI.IDAL;
using IOCDI.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace IOCDI.DAL
{
    /// <summary>
    /// SQLServer
    /// </summary>
    public class UserDAL: IUserDAL
    {
        public UserModel Find(Expression<Func<UserModel, bool>> expression)
        {
            return new UserModel()
            {
                Id = 7,
                Name = "zhangsan-sql",
                Account = "Administrator",
                Email = "57265177@qq.com",
                Password = "123456677",
                Role = "Admin",
                LoginTime = DateTime.Now
            };
        }

        public void Update(UserModel userModel)
        {
            Console.WriteLine("数据库更新");
        }
    }
}
